package com.rc.web.converter;


import com.rc.pojo.dto.knowledge.KnowLedgeAddDTO;
import com.rc.pojo.dto.knowledge.KnowLedgeUpdateDTO;
import com.rc.pojo.po.Knowledge;
import com.rc.pojo.vo.knowldege.KnowledgeVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface KnowledgeConverter {
    KnowledgeVO toVO(Knowledge knowledge);

    Knowledge addDTO2PO(KnowLedgeAddDTO dto);

    Knowledge updateDTO2PO(KnowLedgeUpdateDTO dto);
}
